﻿
@model Movi.ViewModel.UserLoginViewModel
@{
    Layout = null;
}

<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>派普影视 - 后台管理</title>

    @Styles.Render("~/Styles/admin")

    @Scripts.Render("~/Scripts/modernizr")

</head>
<body class="loginck-page">
    <div id="main">
        <div class="container">
            <div class="row">
                <div class="panel">
                    <div class="panel-menu">
                        <span class="glyphicon glyphicon-lock"></span>
                        &nbsp;找回密码
                    </div>
                    @using (Html.BeginForm("Findpwd", "Admin", FormMethod.Post))
                    {
                        @Html.AntiForgeryToken()
                        <div class="panel-body">
                            <div class="login-avatar">
                                <img src="/Content/Admins/img/login.png" width="150" height="112" alt="avatar" />
                            </div>
                            <div class="form-group margin-right-sm margin-lg">
                                <div class="input-group">
                                    <span class="input-group-addon">
                                        <span class="glyphicon glyphicon-user"></span>
                                    </span>
                                    @Html.TextBoxFor(model=>model.Name,new Dictionary<string, object>(){{"class","form-control"},{"placeholder","登录用户名..."}})
                                </div>
                            </div>
                            
                            <div class="form-group margin-right-sm">
                                <div class="input-group">
                                    <span class="input-group-addon">
                                        <span class="glyphicon glyphicon-user"></span>
                                    </span>
                                    @Html.TextBoxFor(model=>model.Email,new Dictionary<string, object>(){{"class","form-control"},{"placeholder","邮箱地址..."}})
                                </div>
                            </div>
                            
                            @if (TempData["Success"] != null && ViewData.ModelState.IsValid)
                            {
                                <div class="login-alert">
                                    <div class="alert alert-warning">
                                        @(TempData["Success"])系统将会在<span class="text-danger">&nbsp;5&nbsp;</span>秒钟后定位到登录页...
                                        <script type="text/javascript">
                                            setTimeout(function () {
                                                window.location = "/Admin/Login";
                                            }, 5000)
                                        </script>
                                    </div>
                                </div>   
                            }

                            @if (!ViewData.ModelState.IsValid)
                            {
                                <div class="login-alert">
                                    <div class="alert alert-warning">
                                        @(Html.ValidationMessage("Global"))
                                    </div>
                                </div>    
                            }
                        </div>
                        <div class="panel-footer">
                            <span class="pull-left" style="padding-top: 7px;">
                                <a href="@Url.Action("Login","Admin")">返回登录</a>
                            </span>
                            <div class="form-group margin-bottom-none">
                                @if (TempData["Success"] == null)
                                {
                                    <input class="btn btn-success pull-right" type="submit" value="找回"/>
                                }
                                <div class="clearfix"></div>
                            </div>
                        </div>
                    }
                </div>
            </div>
        </div>
    </div>
    @Scripts.Render("~/Scripts/framework")
</body>
</html>
